﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using static Global.Const;
using System.Web.Mvc;
using Global.Validation;

namespace ViewModels.Contact
{
    public class EditModel
    {
        [AtLeastOneRequired("contact", ErrorMessage = "* 至少填写一个联系方式")]
        public string Wechat { get; set; }

        [QQ]
        [AtLeastOneRequired("contact", ErrorMessage = "* 至少填写一个联系方式")]
        public string QQ { get; set; }

        [Email]
        [AtLeastOneRequired("contact", ErrorMessage = "* 至少填写一个联系方式")]
        //[Remote("_NotDuplicted", "Email", ErrorMessage = "* 该Email地址已经被使用")]
        public string Email { get; set; }

        [AtLeastOneRequired("contact", ErrorMessage = "* 至少填写一个联系方式")]
        public string Other { get; set; }
        public string Comment { get; set; }


    }
}
